package com.zy.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName(value = "zhu")
public class Role {

	@TableId(type = IdType.AUTO)
	private Integer id;

	private String username;

	private String password;

	private String salt;

	private Integer bianhao;

	private Integer wid;

	private String xingbie;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
	private Date birthday;

	private Integer cid;

	@TableField(exist = false)
	private Wai wai;
}
